{% extends 'basepl.html' %}
{% load static %}

{% block head %}
    <style>
        #tjbtn{
            color: #b113e2;
            width: 40px;
        }
    </style>
    <title>课程管理</title>
<link rel="stylesheet" href="{% static '/calendar.css' %}">
<script src="{% static '/jquery.min.js' %}"></script>
<script src="{% static '/calendar.js' %}" type="text/javascript"></script>
{% endblock head %}
{% block nav %}
 <li><a href="/teaIndex">首页</a></li>
<li><a href="#top">大学课程教学过程管理系统</a></li>
<li><a href="/">切换账号</a></li>
<li><a href="#">{{ request.session.cname }}</a></li>
<li><a href="#">关于</a></li>
<li><a href="/">注销</a></li>
{% endblock nav %}
{% block li %}
    <li><a href="/teaIndex/teaTask/cdetail">编&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;辑</a></li>
    <li><a href="/teaIndex/teaTask/zuoye">作&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;业</a></li>
    <li><a href="/teaIndex/teaTask/chengji">成&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;绩</a></li>
    <li><a href="/teaIndex/teaTask/detail?val=mingdan">花&nbsp;名&nbsp;册</a></li>
    <li><a href="/teaIndex/teaTask/detail?val=chengjidan">成&nbsp;绩&nbsp;
        单</a></li>
{% endblock li %}

{% block section %}
<div id="ly">
    <h3 align="center">资源上传</h3>
    <form method = 'post' enctype="multipart/form-data" >
            {% csrf_token %}
        <label >资源说明：</label><br><textarea name="abstract" cols="40" rows="3"></textarea>
            <input type="file" id="up" name="upre" value="浏览" required>
            <input id="tjbtn" type="submit" value = "确定" >
    </form>
    <br>
    <hr>
    <h3 align="center">历史上传</h3>
    <table id="re" cellpadding="10px">
        <tr>

            <th width="260px">文件名</th>
            <th>上传时间</th>
        </tr>
        {% for foo in source %}
            <tr>
                <td>{{ forloop.counter }}&#10151;<a class="relink" href="/download?name={{ foo.scfp }}">{{ foo.scfp }}</a></td>
                <td align="center">{{ foo.sctime }}</td>
            </tr>
        {% endfor %}
    </table>

</div>
<div id="gonggao">
<h3 align="center">签到信息</h3>
</div>
{% endblock section %}

{% block qd %}
<div class="datepicker" id="calendar">
    <input type="text">
    <i class="fa fa-calendar"></i>

<script src="{% static '/jquery.min.js' %}"></script>
<script>
$(document).ready(function () {
    $("#calendar").callendar();

});
</script>
</div>
{% endblock qd %}
